package com.xjzp.business.db.hibernate.po.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the tb_test_report_head table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="tb_test_report_head"
 */

public abstract class BaseTbTestReportHead  implements Serializable {

	public static String REF = "TbTestReportHead";
	public static String PROP_FREQUENCY = "Frequency";
	public static String PROP_SUBJECT_ID = "SubjectId";
	public static String PROP_USER_ID = "UserId";
	public static String PROP_PHONE = "Phone";
	public static String PROP_DIRECTOR = "Director";
	public static String PROP_YEAR = "Year";
	public static String PROP_TEST_TIME = "TestTime";
	public static String PROP_EMAIL = "Email";
	public static String PROP_HEADING_ID = "HeadingId";
	public static String PROP_DETECTOR = "Detector";
	public static String PROP_SUB1 = "Sub1";
	public static String PROP_LEVEL = "Level";
	public static String PROP_ID = "Id";


	// constructors
	public BaseTbTestReportHead () {
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseTbTestReportHead (java.lang.Integer id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Integer id;

	// fields
	private java.lang.Integer headingId;
	private java.lang.Integer userId;
	private java.lang.Integer subjectId;
	private java.lang.String year;
	private java.lang.Integer frequency;
	private java.lang.String testTime;
	private java.lang.String detector;
	private java.lang.String director;
	private java.lang.String phone;
	private java.lang.String email;
	private java.lang.String level;
	private java.lang.String sub1;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="increment"
     *  column="id"
     */
	public java.lang.Integer getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.Integer id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: heading_id
	 */
	public java.lang.Integer getHeadingId () {
		return headingId;
	}

	/**
	 * Set the value related to the column: heading_id
	 * @param headingId the heading_id value
	 */
	public void setHeadingId (java.lang.Integer headingId) {
		this.headingId = headingId;
	}



	/**
	 * Return the value associated with the column: user_id
	 */
	public java.lang.Integer getUserId () {
		return userId;
	}

	/**
	 * Set the value related to the column: user_id
	 * @param userId the user_id value
	 */
	public void setUserId (java.lang.Integer userId) {
		this.userId = userId;
	}



	/**
	 * Return the value associated with the column: subject_id
	 */
	public java.lang.Integer getSubjectId () {
		return subjectId;
	}

	/**
	 * Set the value related to the column: subject_id
	 * @param subjectId the subject_id value
	 */
	public void setSubjectId (java.lang.Integer subjectId) {
		this.subjectId = subjectId;
	}



	/**
	 * Return the value associated with the column: year
	 */
	public java.lang.String getYear () {
		return year;
	}

	/**
	 * Set the value related to the column: year
	 * @param year the year value
	 */
	public void setYear (java.lang.String year) {
		this.year = year;
	}



	/**
	 * Return the value associated with the column: frequency
	 */
	public java.lang.Integer getFrequency () {
		return frequency;
	}

	/**
	 * Set the value related to the column: frequency
	 * @param frequency the frequency value
	 */
	public void setFrequency (java.lang.Integer frequency) {
		this.frequency = frequency;
	}



	/**
	 * Return the value associated with the column: test_time
	 */
	public java.lang.String getTestTime () {
		return testTime;
	}

	/**
	 * Set the value related to the column: test_time
	 * @param testTime the test_time value
	 */
	public void setTestTime (java.lang.String testTime) {
		this.testTime = testTime;
	}



	/**
	 * Return the value associated with the column: detector
	 */
	public java.lang.String getDetector () {
		return detector;
	}

	/**
	 * Set the value related to the column: detector
	 * @param detector the detector value
	 */
	public void setDetector (java.lang.String detector) {
		this.detector = detector;
	}



	/**
	 * Return the value associated with the column: director
	 */
	public java.lang.String getDirector () {
		return director;
	}

	/**
	 * Set the value related to the column: director
	 * @param director the director value
	 */
	public void setDirector (java.lang.String director) {
		this.director = director;
	}



	/**
	 * Return the value associated with the column: phone
	 */
	public java.lang.String getPhone () {
		return phone;
	}

	/**
	 * Set the value related to the column: phone
	 * @param phone the phone value
	 */
	public void setPhone (java.lang.String phone) {
		this.phone = phone;
	}



	/**
	 * Return the value associated with the column: email
	 */
	public java.lang.String getEmail () {
		return email;
	}

	/**
	 * Set the value related to the column: email
	 * @param email the email value
	 */
	public void setEmail (java.lang.String email) {
		this.email = email;
	}



	/**
	 * Return the value associated with the column: level
	 */
	public java.lang.String getLevel () {
		return level;
	}

	/**
	 * Set the value related to the column: level
	 * @param level the level value
	 */
	public void setLevel (java.lang.String level) {
		this.level = level;
	}



	/**
	 * Return the value associated with the column: sub_1
	 */
	public java.lang.String getSub1 () {
		return sub1;
	}

	/**
	 * Set the value related to the column: sub_1
	 * @param sub1 the sub_1 value
	 */
	public void setSub1 (java.lang.String sub1) {
		this.sub1 = sub1;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof com.xjzp.business.db.hibernate.po.TbTestReportHead)) return false;
		else {
			com.xjzp.business.db.hibernate.po.TbTestReportHead tbTestReportHead = (com.xjzp.business.db.hibernate.po.TbTestReportHead) obj;
			if (null == this.getId() || null == tbTestReportHead.getId()) return false;
			else return (this.getId().equals(tbTestReportHead.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}